import numpy as np
import cv2

cap = cv2.VideoCapture(0)

cv2.namedWindow('frame',cv2.WINDOW_AUTOSIZE)

while (cap.isOpened()):
	ret,frame = cap.read()

	#frame_gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
	#frame_rgb = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)
	#frame_xyz = cv2.cvtColor(frame,cv2.COLOR_BGR2XYZ)

	cv2.imshow('frame',frame)

	if cv2.waitKey(25) & 0xFF == ord('q'):
		break

cap.release()
cv2.destroyAllWindows()
